package com.navinfo.opentsp.platform.computing.analysis.util;

/**
 * Created by Administrator on 2016/7/21.
 */
public enum AlarmEnum {

    //Alarm（低位）
    EMERGENCY_ALARM(0, "1：紧急报警(A)"),
    SPEEDING_ALARM(1, "1：超速报警(B)"),
    TIRED_ALARM(2, "1：疲劳驾驶(B)"),
    COMING_ALARM(3, "1：危险预警(A)"),
    FAULT_GNSS(4, "1：GNSS模块发送故障(B)"),
    NO_CONNECT_GNSS(5, "1：GNSS天线未接或被剪断(B)"),
    SHORT_CIRCUIT_GNSS(6, "1：GNSS天线短路(B)"),
    UNDER_POWER(7, "1：主电源欠压(B)"),
    LOSS_POWER(8, "1：主电源掉电(B)"),
    FAULT_LCD(9, "1：终端LCD或显示器故障(B)"),
    FAULT_TTS(10, "1：TTS模块故障(B)"),
    FAULT_CAMERA(11, "1：摄像头故障(B)"),
    IC_CARD_FAILURE(12, "1：道路运输证IC卡模块故障(B)"),
    SPEEDING_WARNING_ALARM(13, "1：超速预警(B)"),
    TIRED_WARNING_ALARM(14, "1：疲劳驾驶预警(B)"),
    //15~17：预留
    DRIVING_TIMEOUT(18, "1：当天累计驾驶超时(B)"),
    PARKING_TIMEOUT(19, "1：超时停车(B)"),
    IN_OUT_AREA(20, "1：进出区域(A)"),
    IN_OUT_ROUTE(21, "1：进出路线(A)"),
    ROUTE_LACK_OR_OVERTIME(22, "1：路段行驶时间不足/过长(A)"),
    ROUTE_DEVIATES(23, "1：路线偏离报警(B)"),

    //AlarmAddition（高位）
    FAULT_VSS(24, "1：车辆VSS故障(B)"),
    ABNORMAL_OIL(25, "1：车辆油量异常(B)"),
    STOLEN_VEHICLE(26, "1：车辆被盗(B)"),
    ILLEGAL_IGNITION(27, "1：车辆非法点火(A)"),
    ILLEGAL_DISPLACEMENT(28, "1：车辆非法位移(A)"),
    COLLISION_ALARM(29, "1：碰撞预警(B)"),
    ROLLOVER_ALARM(30, "1：侧翻预警(B)"),
    ILLEGAL_OPEN_DOOR_ALARM(31, "1：非法开门报警(A)"),
    DRIVING_BAN(32, "1：禁驾(B)"),
    KEY_POINT_FENCE(33, "1：关键点围栏"),
    OVERTIME_PARKING_IN_AREA(34, "1：区域滞留超时报警"),
    //10~23：保留

    ;

    private int index;
    private String description;

    private AlarmEnum(final int index, final String description) {
        this.index = index;
        this.description = description;
    }

    public int getIndex() {
        return index;
    }

    public String getDescription() {
        return description;
    }

}
